<template>
  <rx-ui-msgbox :msgtype="msgtype"
    :title="title"
    :content="content"
  >
  <div slot="footer">
    <rx-msgbox-footer @resolve="$emit('resolve',arguments[0])" @reject="$emit('reject')"></rx-msgbox-footer>
  </div>
  </rx-ui-msgbox>
</template>

<script>
import ui from './ui.vue'
export default {
  name: 'rx-msgbox',
  props: {
    msgtype: {
      type: String,
      default: "warn"
    },
    title: {
      type: String,
      default: "提示"
    },
    content: {
      type: String,
      default: ''
    }
  },
  components:{
    'rx-ui-msgbox':ui
  }
};
</script>
